<span class="glyphicon glyphicon-list-alt disabled btn-xs">~<?php echo $vocab->card_count * 10?></span>
<span class="glyphicon glyphicon-ok disabled btn-xs">~<?php echo $vocab->card_learned_count * 10?></span>
<span class="glyphicon glyphicon-thumbs-up disabled btn-xs"><?php
    $card_tested_count = $vocab->card_tested_correct_count + $vocab->card_tested_incorrect_count;
    if ($card_tested_count == 0) echo '0';
    else {
        $words_get = $vocab->card_learned_count * 10 * $vocab->card_tested_correct_count / $card_tested_count;
        echo '~' . intval($words_get);
    }
    ?></span>